/**
 * @Title: Application.java
 * @Package me.springboot.mybatis
 * @Description: TODO
 * @author weiwei
 * @date 2017年8月10日 下午4:00:41
 * @version V1.0
 */
package me.springboot.mybatis;

import me.springboot.mybatis.zhcs.socket.SocketService;
import org.apache.log4j.Logger;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.support.SpringBootServletInitializer;

import java.io.IOException;

/**
 * @author weiwei
 * @ClassName: Application
 * @Description: TODO
 * @date 2017年8月10日 下午4:00:41
 */
@SpringBootApplication
public class Application {

    private static final Logger logger = Logger.getLogger(Application.class);

    /**
     * @param args
     * @Title: main
     * @Description: TODO
     * @Reutrn void
     */
    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);
        try {
            SocketService.startByteService(200);
        } catch (IOException e) {
            e.printStackTrace();
        }
        logger.info("=============================begin=====================");
    }

    /*protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
        return builder.sources(Application.class);
    }*/

}